<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FabGL: keyboard.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">FabGL
   </div>
   <div id="projectbrief">ESP32 Display Controller and Graphics Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('keyboard_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">keyboard.h</div></div>
</div><!--header-->
<div class="contents">
<a href="keyboard_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment">  Created by Fabrizio Di Vittorio (fdivitto2013@gmail.com) - &lt;http://www.fabgl.com&gt;</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment">  Copyright (c) 2019-2022 Fabrizio Di Vittorio.</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment">  All rights reserved.</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"></span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"></span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment">* Please contact fdivitto2013@gmail.com if you need a commercial license.</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"></span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="comment"></span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="comment">* This library and related software is available under GPL v3.</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="comment"></span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="comment">  FabGL is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="comment">  it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="comment">  the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="comment">  (at your option) any later version.</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="comment"></span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="comment">  FabGL is distributed in the hope that it will be useful,</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="comment">  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="comment">  GNU General Public License for more details.</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="comment"></span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="comment">  You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="comment">  along with FabGL.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="comment"> */</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="preprocessor">#include &quot;freertos/FreeRTOS.h&quot;</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="preprocessor">#include &quot;<a class="code" href="fabglconf_8h.html">fabglconf.h</a>&quot;</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="preprocessor">#include &quot;<a class="code" href="ps2device_8h.html">comdrivers/ps2device.h</a>&quot;</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span><span class="preprocessor">#include &quot;<a class="code" href="fabui_8h.html">fabui.h</a>&quot;</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span><span class="preprocessor">#include &quot;<a class="code" href="kbdlayouts_8h.html">kbdlayouts.h</a>&quot;</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="preprocessor">#include &quot;<a class="code" href="codepages_8h.html">codepages.h</a>&quot;</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span><span class="keyword">namespace </span>fabgl {</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard.html">   77</a></span><span class="keyword">class </span><a class="code hl_class" href="classfabgl_1_1_keyboard.html">Keyboard</a> : <span class="keyword">public</span> <a class="code hl_class" href="classfabgl_1_1_p_s2_device.html">PS2Device</a> {</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span> </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span> </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span>  <a class="code hl_class" href="classfabgl_1_1_keyboard.html">Keyboard</a>();</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>  <a class="code hl_class" href="classfabgl_1_1_keyboard.html">~Keyboard</a>();</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span> </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_a4f1c6a36aae1c88e57c6bc7e05c772d1.html#a4f1c6a36aae1c88e57c6bc7e05c772d1">begin</a>(gpio_num_t clkGPIO, gpio_num_t dataGPIO, <span class="keywordtype">bool</span> generateVirtualKeys = <span class="keyword">true</span>, <span class="keywordtype">bool</span> createVKQueue = <span class="keyword">true</span>);</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span> </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_a4f1c6a36aae1c88e57c6bc7e05c772d1.html#a4f1c6a36aae1c88e57c6bc7e05c772d1">begin</a>(<span class="keywordtype">bool</span> generateVirtualKeys, <span class="keywordtype">bool</span> createVKQueue, <span class="keywordtype">int</span> PS2Port);</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span> </div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_a3634bbeb8aa072c0d2e6e2c6c1553301.html#a3634bbeb8aa072c0d2e6e2c6c1553301">enableVirtualKeys</a>(<span class="keywordtype">bool</span> generateVirtualKeys, <span class="keywordtype">bool</span> createVKQueue);</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_a823914d949a5510b933dcfb335e36ab1.html#a823914d949a5510b933dcfb335e36ab1">  149</a></span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_a823914d949a5510b933dcfb335e36ab1.html#a823914d949a5510b933dcfb335e36ab1">setUIApp</a>(<a class="code hl_class" href="classfabgl_1_1ui_app.html">uiApp</a> * app) { m_uiApp = app; }</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span> </div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_a50910ef42a65d4c139af341f1ef2323f.html#a50910ef42a65d4c139af341f1ef2323f">reset</a>();</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_aef1dd1399d92a09d1ed115911b563688.html#aef1dd1399d92a09d1ed115911b563688">  165</a></span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_aef1dd1399d92a09d1ed115911b563688.html#aef1dd1399d92a09d1ed115911b563688">isKeyboardAvailable</a>() { <span class="keywordflow">return</span> m_keyboardAvailable; }</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span> </div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_aca97a7179d5358ec795485e15618b243.html#aca97a7179d5358ec795485e15618b243">setLayout</a>(<a class="code hl_struct" href="structfabgl_1_1_keyboard_layout.html">KeyboardLayout</a> <span class="keyword">const</span> * layout);</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno">  182</span> </div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_aed861a34a0b8194ff5eed19088e6e04d.html#aed861a34a0b8194ff5eed19088e6e04d">  188</a></span>  <a class="code hl_struct" href="structfabgl_1_1_keyboard_layout.html">KeyboardLayout</a> <span class="keyword">const</span> * <a class="code hl_function" href="classfabgl_1_1_keyboard_aed861a34a0b8194ff5eed19088e6e04d.html#aed861a34a0b8194ff5eed19088e6e04d">getLayout</a>() { <span class="keywordflow">return</span> m_layout; }</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span> </div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_ad64abdda7b0ab92e15e23c602571e851.html#ad64abdda7b0ab92e15e23c602571e851">isVKDown</a>(<a class="code hl_enumeration" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> virtualKey);</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span> </div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span>  <span class="keywordtype">int</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_a1da2800c551ac4fa0fe2f61915a8a2da.html#a1da2800c551ac4fa0fe2f61915a8a2da">virtualKeyAvailable</a>();</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno">  211</span> </div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span>  <a class="code hl_enumeration" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> <a class="code hl_function" href="classfabgl_1_1_keyboard_a0de31f752f76a296060bc792b51e50ba.html#a0de31f752f76a296060bc792b51e50ba">getNextVirtualKey</a>(<span class="keywordtype">bool</span> * keyDown = <span class="keyword">nullptr</span>, <span class="keywordtype">int</span> timeOutMS = -1);</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno">  224</span> </div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno">  236</span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_a0de31f752f76a296060bc792b51e50ba.html#a0de31f752f76a296060bc792b51e50ba">getNextVirtualKey</a>(<a class="code hl_struct" href="structfabgl_1_1_virtual_key_item.html">VirtualKeyItem</a> * item, <span class="keywordtype">int</span> timeOutMS = -1);</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno">  237</span> </div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno">  245</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_a43ee85b9025f15c6edeb7ec670ca535b.html#a43ee85b9025f15c6edeb7ec670ca535b">injectVirtualKey</a>(<a class="code hl_enumeration" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> virtualKey, <span class="keywordtype">bool</span> keyDown, <span class="keywordtype">bool</span> insert = <span class="keyword">false</span>);</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno">  246</span> </div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno">  253</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_a43ee85b9025f15c6edeb7ec670ca535b.html#a43ee85b9025f15c6edeb7ec670ca535b">injectVirtualKey</a>(<a class="code hl_struct" href="structfabgl_1_1_virtual_key_item.html">VirtualKeyItem</a> <span class="keyword">const</span> &amp; item, <span class="keywordtype">bool</span> insert = <span class="keyword">false</span>);</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno">  254</span> </div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno">  258</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_aefe8cfbbb777abf28e87a1caf05da5e8.html#aefe8cfbbb777abf28e87a1caf05da5e8">emptyVirtualKeyQueue</a>();</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno">  259</span> </div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno">  274</span>  <span class="keywordtype">int</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_aa360795d47499669a2b42cc6a6d3ff7b.html#aa360795d47499669a2b42cc6a6d3ff7b">virtualKeyToASCII</a>(<a class="code hl_enumeration" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> virtualKey);</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno">  275</span> </div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_ac1d99a6ef63ceea2bdf227fd7dc1c1af.html#ac1d99a6ef63ceea2bdf227fd7dc1c1af">  288</a></span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_ac1d99a6ef63ceea2bdf227fd7dc1c1af.html#ac1d99a6ef63ceea2bdf227fd7dc1c1af">setCodePage</a>(CodePage <span class="keyword">const</span> * codepage)                      { m_codepage = codepage; }</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno">  289</span> </div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno">  298</span>  <span class="keywordtype">int</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_a55976327987b5fa4942532e400d7480c.html#a55976327987b5fa4942532e400d7480c">scancodeAvailable</a>();</div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno">  299</span> </div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno">  311</span>  <span class="keywordtype">int</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_ad95b6b1928e6bd2cb5b5e3fb8be11f52.html#ad95b6b1928e6bd2cb5b5e3fb8be11f52">getNextScancode</a>(<span class="keywordtype">int</span> timeOutMS = -1, <span class="keywordtype">bool</span> requestResendOnTimeOut = <span class="keyword">false</span>);</div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno">  312</span> </div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno">  324</span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_a99a84478b09fbb13863c3ec64f7ca872.html#a99a84478b09fbb13863c3ec64f7ca872">setLEDs</a>(<span class="keywordtype">bool</span> numLock, <span class="keywordtype">bool</span> capsLock, <span class="keywordtype">bool</span> scrollLock);</div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno">  325</span> </div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno">  335</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_abda5b9383751f677dd50359f5d5e6767.html#abda5b9383751f677dd50359f5d5e6767">getLEDs</a>(<span class="keywordtype">bool</span> * numLock, <span class="keywordtype">bool</span> * capsLock, <span class="keywordtype">bool</span> * scrollLock);</div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno">  336</span> </div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_af2f021a81df654389e62860afdb8f1de.html#af2f021a81df654389e62860afdb8f1de">  347</a></span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_af2f021a81df654389e62860afdb8f1de.html#af2f021a81df654389e62860afdb8f1de">setTypematicRateAndDelay</a>(<span class="keywordtype">int</span> repeatRateMS, <span class="keywordtype">int</span> repeatDelayMS) { <span class="keywordflow">return</span> send_cmdTypematicRateAndDelay(repeatRateMS, repeatDelayMS); }</div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno">  348</span> </div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno">  362</span>  <span class="keywordtype">bool</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_a600e8df9a742233bd074a2510be71cce.html#a600e8df9a742233bd074a2510be71cce">setScancodeSet</a>(<span class="keywordtype">int</span> value);</div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno">  363</span> </div>
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_aac6f6dc99df5db0ee8bb96b4917022b6.html#aac6f6dc99df5db0ee8bb96b4917022b6">  369</a></span>  <span class="keywordtype">int</span> <a class="code hl_function" href="classfabgl_1_1_keyboard_aac6f6dc99df5db0ee8bb96b4917022b6.html#aac6f6dc99df5db0ee8bb96b4917022b6">scancodeSet</a>()                { <span class="keywordflow">return</span> m_scancodeSet; }</div>
<div class="line"><a id="l00370" name="l00370"></a><span class="lineno">  370</span> </div>
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno">  371</span>  <span class="keyword">static</span> uint8_t convScancodeSet2To1(uint8_t code);</div>
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno">  372</span> </div>
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno">  373</span><span class="preprocessor">#if FABGLIB_HAS_VirtualKeyO_STRING</span></div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno">  374</span>  <span class="keyword">static</span> <span class="keywordtype">char</span> <span class="keyword">const</span> * virtualKeyToString(<a class="code hl_enumeration" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> virtualKey);</div>
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno">  375</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno">  376</span> </div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno">  377</span> </div>
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno">  379</span> </div>
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_a41c6325db16da56b81f05e8d9dcabd0e.html#a41c6325db16da56b81f05e8d9dcabd0e">  386</a></span>  Delegate&lt;VirtualKey *, bool&gt; <a class="code hl_variable" href="classfabgl_1_1_keyboard_a41c6325db16da56b81f05e8d9dcabd0e.html#a41c6325db16da56b81f05e8d9dcabd0e">onVirtualKey</a>;</div>
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno">  387</span> </div>
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno">  388</span> </div>
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno">  390</span> </div>
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno">  391</span> </div>
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_a298b50557e15073b8bca4773f118f1dc.html#a298b50557e15073b8bca4773f118f1dc">  399</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="classfabgl_1_1_keyboard_a298b50557e15073b8bca4773f118f1dc.html#a298b50557e15073b8bca4773f118f1dc">scancodeToVirtualKeyTaskStackSize</a>;</div>
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno">  400</span> </div>
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno">  401</span> </div>
<div class="line"><a id="l00402" name="l00402"></a><span class="lineno">  402</span> </div>
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno">  403</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno">  404</span> </div>
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno">  405</span>  <a class="code hl_enumeration" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> scancodeToVK(uint8_t scancode, <span class="keywordtype">bool</span> isExtended, <a class="code hl_struct" href="structfabgl_1_1_keyboard_layout.html">KeyboardLayout</a> <span class="keyword">const</span> * layout = <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno">  406</span>  <a class="code hl_enumeration" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> VKtoAlternateVK(<a class="code hl_enumeration" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> in_vk, <span class="keywordtype">bool</span> down, <a class="code hl_struct" href="structfabgl_1_1_keyboard_layout.html">KeyboardLayout</a> <span class="keyword">const</span> * layout = <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00407" name="l00407"></a><span class="lineno">  407</span>  <a class="code hl_enumeration" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> manageCAPSLOCK(<a class="code hl_enumeration" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> vk);</div>
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno">  408</span>  <span class="keywordtype">void</span> updateLEDs();</div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno">  409</span>  <span class="keywordtype">bool</span> blockingGetVirtualKey(<a class="code hl_struct" href="structfabgl_1_1_virtual_key_item.html">VirtualKeyItem</a> * item);</div>
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno">  410</span>  <span class="keywordtype">void</span> convertScancode2to1(<a class="code hl_struct" href="structfabgl_1_1_virtual_key_item.html">VirtualKeyItem</a> * item);</div>
<div class="line"><a id="l00411" name="l00411"></a><span class="lineno">  411</span>  <span class="keywordtype">void</span> postVirtualKeyItem(<a class="code hl_struct" href="structfabgl_1_1_virtual_key_item.html">VirtualKeyItem</a> <span class="keyword">const</span> &amp; item);</div>
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno">  412</span>  <span class="keyword">static</span> <span class="keywordtype">int</span> convKeypadVKToNum(<a class="code hl_enumeration" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> vk);</div>
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno">  413</span> </div>
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno">  414</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> SCodeToVKConverterTask(<span class="keywordtype">void</span> * pvParameters);</div>
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno">  415</span> </div>
<div class="line"><a id="l00416" name="l00416"></a><span class="lineno">  416</span> </div>
<div class="line"><a id="l00417" name="l00417"></a><span class="lineno">  417</span>  <span class="keywordtype">bool</span>                      m_keyboardAvailable;  <span class="comment">// self test passed and support for scancode set 2</span></div>
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno">  418</span> </div>
<div class="line"><a id="l00419" name="l00419"></a><span class="lineno">  419</span>  TaskHandle_t              m_SCodeToVKConverterTask; <span class="comment">// Task that converts scancodes to virtual key and populates m_virtualKeyQueue</span></div>
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno">  420</span>  QueueHandle_t             m_virtualKeyQueue;</div>
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno">  421</span> </div>
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno">  422</span>  uint8_t                   m_VKMap[(int)(VK_LAST + 7) / 8];</div>
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno">  423</span> </div>
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno">  424</span>  <span class="comment">// allowed values: 1, 2 or 3</span></div>
<div class="line"><a id="l00425" name="l00425"></a><span class="lineno">  425</span>  <span class="comment">// If virtual keys are enabled only 1 and 2 are possible. In case of scancode set 1 it is converted from scan code set 2, which is necessary</span></div>
<div class="line"><a id="l00426" name="l00426"></a><span class="lineno">  426</span>  <span class="comment">// in order to decode virtual keys.</span></div>
<div class="line"><a id="l00427" name="l00427"></a><span class="lineno">  427</span>  uint8_t                   m_scancodeSet;</div>
<div class="line"><a id="l00428" name="l00428"></a><span class="lineno">  428</span> </div>
<div class="line"><a id="l00429" name="l00429"></a><span class="lineno">  429</span>  <a class="code hl_struct" href="structfabgl_1_1_keyboard_layout.html">KeyboardLayout</a> <span class="keyword">const</span> *    m_layout;</div>
<div class="line"><a id="l00430" name="l00430"></a><span class="lineno">  430</span> </div>
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno">  431</span>  <a class="code hl_class" href="classfabgl_1_1ui_app.html">uiApp</a> *                   m_uiApp;</div>
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno">  432</span> </div>
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno">  433</span>  <span class="keywordtype">bool</span>                      m_CTRL;</div>
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno">  434</span>  <span class="keywordtype">bool</span>                      m_LALT;</div>
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno">  435</span>  <span class="keywordtype">bool</span>                      m_RALT;</div>
<div class="line"><a id="l00436" name="l00436"></a><span class="lineno">  436</span>  <span class="keywordtype">bool</span>                      m_SHIFT;</div>
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno">  437</span>  <span class="keywordtype">bool</span>                      m_CAPSLOCK;</div>
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno">  438</span>  <span class="keywordtype">bool</span>                      m_GUI;</div>
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno">  439</span>  <span class="keywordtype">bool</span>                      m_NUMLOCK;</div>
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno">  440</span>  <span class="keywordtype">bool</span>                      m_SCROLLLOCK;</div>
<div class="line"><a id="l00441" name="l00441"></a><span class="lineno">  441</span> </div>
<div class="line"><a id="l00442" name="l00442"></a><span class="lineno">  442</span>  <a class="code hl_enumeration" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a>                m_lastDeadKey;</div>
<div class="line"><a id="l00443" name="l00443"></a><span class="lineno">  443</span> </div>
<div class="line"><a id="l00444" name="l00444"></a><span class="lineno">  444</span>  <span class="comment">// store status of the three LEDs</span></div>
<div class="line"><a id="l00445" name="l00445"></a><span class="lineno">  445</span>  <span class="keywordtype">bool</span>                      m_numLockLED;</div>
<div class="line"><a id="l00446" name="l00446"></a><span class="lineno">  446</span>  <span class="keywordtype">bool</span>                      m_capsLockLED;</div>
<div class="line"><a id="l00447" name="l00447"></a><span class="lineno">  447</span>  <span class="keywordtype">bool</span>                      m_scrollLockLED;</div>
<div class="line"><a id="l00448" name="l00448"></a><span class="lineno">  448</span> </div>
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno">  449</span>  CodePage <span class="keyword">const</span> *          m_codepage;</div>
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno">  450</span> </div>
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno">  451</span>};</div>
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno">  452</span> </div>
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno">  453</span> </div>
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno">  454</span> </div>
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno">  455</span> </div>
<div class="line"><a id="l00456" name="l00456"></a><span class="lineno">  456</span> </div>
<div class="line"><a id="l00457" name="l00457"></a><span class="lineno">  457</span>} <span class="comment">// end of namespace</span></div>
<div class="line"><a id="l00458" name="l00458"></a><span class="lineno">  458</span> </div>
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno">  459</span> </div>
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno">  460</span> </div>
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno">  461</span> </div>
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno">  462</span> </div>
<div class="line"><a id="l00463" name="l00463"></a><span class="lineno">  463</span> </div>
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno">  464</span> </div>
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno">  465</span> </div>
<div class="line"><a id="l00466" name="l00466"></a><span class="lineno">  466</span> </div>
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno">  467</span> </div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_a0de31f752f76a296060bc792b51e50ba_html_a0de31f752f76a296060bc792b51e50ba"><div class="ttname"><a href="classfabgl_1_1_keyboard_a0de31f752f76a296060bc792b51e50ba.html#a0de31f752f76a296060bc792b51e50ba">fabgl::Keyboard::getNextVirtualKey</a></div><div class="ttdeci">VirtualKey getNextVirtualKey(bool *keyDown=nullptr, int timeOutMS=-1)</div><div class="ttdoc">Gets a virtual key from the queue.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00704">keyboard.cpp:704</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_a1da2800c551ac4fa0fe2f61915a8a2da_html_a1da2800c551ac4fa0fe2f61915a8a2da"><div class="ttname"><a href="classfabgl_1_1_keyboard_a1da2800c551ac4fa0fe2f61915a8a2da.html#a1da2800c551ac4fa0fe2f61915a8a2da">fabgl::Keyboard::virtualKeyAvailable</a></div><div class="ttdeci">int virtualKeyAvailable()</div><div class="ttdoc">Gets the number of virtual keys available in the queue.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00716">keyboard.cpp:716</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_a298b50557e15073b8bca4773f118f1dc_html_a298b50557e15073b8bca4773f118f1dc"><div class="ttname"><a href="classfabgl_1_1_keyboard_a298b50557e15073b8bca4773f118f1dc.html#a298b50557e15073b8bca4773f118f1dc">fabgl::Keyboard::scancodeToVirtualKeyTaskStackSize</a></div><div class="ttdeci">static int scancodeToVirtualKeyTaskStackSize</div><div class="ttdoc">Stack size of the task that converts scancodes to Virtual Keys Keyboard.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00399">keyboard.h:399</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_a3634bbeb8aa072c0d2e6e2c6c1553301_html_a3634bbeb8aa072c0d2e6e2c6c1553301"><div class="ttname"><a href="classfabgl_1_1_keyboard_a3634bbeb8aa072c0d2e6e2c6c1553301.html#a3634bbeb8aa072c0d2e6e2c6c1553301">fabgl::Keyboard::enableVirtualKeys</a></div><div class="ttdeci">void enableVirtualKeys(bool generateVirtualKeys, bool createVKQueue)</div><div class="ttdoc">Dynamically enables or disables Virtual Keys generation.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00100">keyboard.cpp:100</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_a41c6325db16da56b81f05e8d9dcabd0e_html_a41c6325db16da56b81f05e8d9dcabd0e"><div class="ttname"><a href="classfabgl_1_1_keyboard_a41c6325db16da56b81f05e8d9dcabd0e.html#a41c6325db16da56b81f05e8d9dcabd0e">fabgl::Keyboard::onVirtualKey</a></div><div class="ttdeci">Delegate&lt; VirtualKey *, bool &gt; onVirtualKey</div><div class="ttdoc">Delegate called whenever a new virtual key is decoded from scancodes.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00386">keyboard.h:386</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_a43ee85b9025f15c6edeb7ec670ca535b_html_a43ee85b9025f15c6edeb7ec670ca535b"><div class="ttname"><a href="classfabgl_1_1_keyboard_a43ee85b9025f15c6edeb7ec670ca535b.html#a43ee85b9025f15c6edeb7ec670ca535b">fabgl::Keyboard::injectVirtualKey</a></div><div class="ttdeci">void injectVirtualKey(VirtualKey virtualKey, bool keyDown, bool insert=false)</div><div class="ttdoc">Adds or inserts a virtual key into the virtual keys queue.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00546">keyboard.cpp:546</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_a4f1c6a36aae1c88e57c6bc7e05c772d1_html_a4f1c6a36aae1c88e57c6bc7e05c772d1"><div class="ttname"><a href="classfabgl_1_1_keyboard_a4f1c6a36aae1c88e57c6bc7e05c772d1.html#a4f1c6a36aae1c88e57c6bc7e05c772d1">fabgl::Keyboard::begin</a></div><div class="ttdeci">void begin(gpio_num_t clkGPIO, gpio_num_t dataGPIO, bool generateVirtualKeys=true, bool createVKQueue=true)</div><div class="ttdoc">Initializes Keyboard specifying CLOCK and DATA GPIOs.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00092">keyboard.cpp:92</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_a50910ef42a65d4c139af341f1ef2323f_html_a50910ef42a65d4c139af341f1ef2323f"><div class="ttname"><a href="classfabgl_1_1_keyboard_a50910ef42a65d4c139af341f1ef2323f.html#a50910ef42a65d4c139af341f1ef2323f">fabgl::Keyboard::reset</a></div><div class="ttdeci">bool reset()</div><div class="ttdoc">Sends a Reset command to the keyboard.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00130">keyboard.cpp:130</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_a55976327987b5fa4942532e400d7480c_html_a55976327987b5fa4942532e400d7480c"><div class="ttname"><a href="classfabgl_1_1_keyboard_a55976327987b5fa4942532e400d7480c.html#a55976327987b5fa4942532e400d7480c">fabgl::Keyboard::scancodeAvailable</a></div><div class="ttdeci">int scancodeAvailable()</div><div class="ttdoc">Gets the number of scancodes available in the queue.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00201">keyboard.cpp:201</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_a600e8df9a742233bd074a2510be71cce_html_a600e8df9a742233bd074a2510be71cce"><div class="ttname"><a href="classfabgl_1_1_keyboard_a600e8df9a742233bd074a2510be71cce.html#a600e8df9a742233bd074a2510be71cce">fabgl::Keyboard::setScancodeSet</a></div><div class="ttdeci">bool setScancodeSet(int value)</div><div class="ttdoc">Sets the scancode set.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00156">keyboard.cpp:156</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_a823914d949a5510b933dcfb335e36ab1_html_a823914d949a5510b933dcfb335e36ab1"><div class="ttname"><a href="classfabgl_1_1_keyboard_a823914d949a5510b933dcfb335e36ab1.html#a823914d949a5510b933dcfb335e36ab1">fabgl::Keyboard::setUIApp</a></div><div class="ttdeci">void setUIApp(uiApp *app)</div><div class="ttdoc">Sets current UI app.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00149">keyboard.h:149</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_a99a84478b09fbb13863c3ec64f7ca872_html_a99a84478b09fbb13863c3ec64f7ca872"><div class="ttname"><a href="classfabgl_1_1_keyboard_a99a84478b09fbb13863c3ec64f7ca872.html#a99a84478b09fbb13863c3ec64f7ca872">fabgl::Keyboard::setLEDs</a></div><div class="ttdeci">bool setLEDs(bool numLock, bool capsLock, bool scrollLock)</div><div class="ttdoc">Sets keyboard LEDs status.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00175">keyboard.cpp:175</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_aa360795d47499669a2b42cc6a6d3ff7b_html_aa360795d47499669a2b42cc6a6d3ff7b"><div class="ttname"><a href="classfabgl_1_1_keyboard_aa360795d47499669a2b42cc6a6d3ff7b.html#aa360795d47499669a2b42cc6a6d3ff7b">fabgl::Keyboard::virtualKeyToASCII</a></div><div class="ttdeci">int virtualKeyToASCII(VirtualKey virtualKey)</div><div class="ttdoc">Converts virtual key to ASCII.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00257">keyboard.cpp:257</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_aac6f6dc99df5db0ee8bb96b4917022b6_html_aac6f6dc99df5db0ee8bb96b4917022b6"><div class="ttname"><a href="classfabgl_1_1_keyboard_aac6f6dc99df5db0ee8bb96b4917022b6.html#aac6f6dc99df5db0ee8bb96b4917022b6">fabgl::Keyboard::scancodeSet</a></div><div class="ttdeci">int scancodeSet()</div><div class="ttdoc">Gets current scancode set.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00369">keyboard.h:369</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_abda5b9383751f677dd50359f5d5e6767_html_abda5b9383751f677dd50359f5d5e6767"><div class="ttname"><a href="classfabgl_1_1_keyboard_abda5b9383751f677dd50359f5d5e6767.html#abda5b9383751f677dd50359f5d5e6767">fabgl::Keyboard::getLEDs</a></div><div class="ttdeci">void getLEDs(bool *numLock, bool *capsLock, bool *scrollLock)</div><div class="ttdoc">Gets keyboard LEDs status.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00184">keyboard.cpp:184</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_ac1d99a6ef63ceea2bdf227fd7dc1c1af_html_ac1d99a6ef63ceea2bdf227fd7dc1c1af"><div class="ttname"><a href="classfabgl_1_1_keyboard_ac1d99a6ef63ceea2bdf227fd7dc1c1af.html#ac1d99a6ef63ceea2bdf227fd7dc1c1af">fabgl::Keyboard::setCodePage</a></div><div class="ttdeci">void setCodePage(CodePage const *codepage)</div><div class="ttdoc">Sets font codepage for virtual key to ASCII conversion.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00288">keyboard.h:288</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_aca97a7179d5358ec795485e15618b243_html_aca97a7179d5358ec795485e15618b243"><div class="ttname"><a href="classfabgl_1_1_keyboard_aca97a7179d5358ec795485e15618b243.html#aca97a7179d5358ec795485e15618b243">fabgl::Keyboard::setLayout</a></div><div class="ttdeci">void setLayout(KeyboardLayout const *layout)</div><div class="ttdoc">Sets keyboard layout.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00224">keyboard.cpp:224</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_ad64abdda7b0ab92e15e23c602571e851_html_ad64abdda7b0ab92e15e23c602571e851"><div class="ttname"><a href="classfabgl_1_1_keyboard_ad64abdda7b0ab92e15e23c602571e851.html#ad64abdda7b0ab92e15e23c602571e851">fabgl::Keyboard::isVKDown</a></div><div class="ttdeci">bool isVKDown(VirtualKey virtualKey)</div><div class="ttdoc">Gets the virtual keys status.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00683">keyboard.cpp:683</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_ad95b6b1928e6bd2cb5b5e3fb8be11f52_html_ad95b6b1928e6bd2cb5b5e3fb8be11f52"><div class="ttname"><a href="classfabgl_1_1_keyboard_ad95b6b1928e6bd2cb5b5e3fb8be11f52.html#ad95b6b1928e6bd2cb5b5e3fb8be11f52">fabgl::Keyboard::getNextScancode</a></div><div class="ttdeci">int getNextScancode(int timeOutMS=-1, bool requestResendOnTimeOut=false)</div><div class="ttdoc">Gets a scancode from the queue.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00207">keyboard.cpp:207</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_aed861a34a0b8194ff5eed19088e6e04d_html_aed861a34a0b8194ff5eed19088e6e04d"><div class="ttname"><a href="classfabgl_1_1_keyboard_aed861a34a0b8194ff5eed19088e6e04d.html#aed861a34a0b8194ff5eed19088e6e04d">fabgl::Keyboard::getLayout</a></div><div class="ttdeci">KeyboardLayout const * getLayout()</div><div class="ttdoc">Gets current keyboard layout.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00188">keyboard.h:188</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_aef1dd1399d92a09d1ed115911b563688_html_aef1dd1399d92a09d1ed115911b563688"><div class="ttname"><a href="classfabgl_1_1_keyboard_aef1dd1399d92a09d1ed115911b563688.html#aef1dd1399d92a09d1ed115911b563688">fabgl::Keyboard::isKeyboardAvailable</a></div><div class="ttdeci">bool isKeyboardAvailable()</div><div class="ttdoc">Checks if keyboard has been detected and correctly initialized.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00165">keyboard.h:165</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_aefe8cfbbb777abf28e87a1caf05da5e8_html_aefe8cfbbb777abf28e87a1caf05da5e8"><div class="ttname"><a href="classfabgl_1_1_keyboard_aefe8cfbbb777abf28e87a1caf05da5e8.html#aefe8cfbbb777abf28e87a1caf05da5e8">fabgl::Keyboard::emptyVirtualKeyQueue</a></div><div class="ttdeci">void emptyVirtualKeyQueue()</div><div class="ttdoc">Empties the virtual keys queue.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00722">keyboard.cpp:722</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_af2f021a81df654389e62860afdb8f1de_html_af2f021a81df654389e62860afdb8f1de"><div class="ttname"><a href="classfabgl_1_1_keyboard_af2f021a81df654389e62860afdb8f1de.html#af2f021a81df654389e62860afdb8f1de">fabgl::Keyboard::setTypematicRateAndDelay</a></div><div class="ttdeci">bool setTypematicRateAndDelay(int repeatRateMS, int repeatDelayMS)</div><div class="ttdoc">Sets typematic rate and delay.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00347">keyboard.h:347</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_keyboard_html"><div class="ttname"><a href="classfabgl_1_1_keyboard.html">fabgl::Keyboard</a></div><div class="ttdoc">The PS2 Keyboard controller class.</div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00077">keyboard.h:77</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_p_s2_device_html"><div class="ttname"><a href="classfabgl_1_1_p_s2_device.html">fabgl::PS2Device</a></div><div class="ttdoc">Base class for PS2 devices (like mouse or keyboard).</div><div class="ttdef"><b>Definition:</b> <a href="ps2device_8h_source.html#l00070">ps2device.h:70</a></div></div>
<div class="ttc" id="aclassfabgl_1_1ui_app_html"><div class="ttname"><a href="classfabgl_1_1ui_app.html">fabgl::uiApp</a></div><div class="ttdoc">Represents the whole application base class.</div><div class="ttdef"><b>Definition:</b> <a href="fabui_8h_source.html#l03103">fabui.h:3103</a></div></div>
<div class="ttc" id="acodepages_8h_html"><div class="ttname"><a href="codepages_8h.html">codepages.h</a></div><div class="ttdoc">This file contains codepages declarations.</div></div>
<div class="ttc" id="afabglconf_8h_html"><div class="ttname"><a href="fabglconf_8h.html">fabglconf.h</a></div><div class="ttdoc">This file contains FabGL library configuration settings, like number of supported colors,...</div></div>
<div class="ttc" id="afabui_8h_html"><div class="ttname"><a href="fabui_8h.html">fabui.h</a></div><div class="ttdoc">This file contains all classes related to FabGL Graphical User Interface.</div></div>
<div class="ttc" id="agroup___enumerations_gad0e6e31d5953384be4ea987eb3923e02_html_gad0e6e31d5953384be4ea987eb3923e02"><div class="ttname"><a href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">fabgl::VirtualKey</a></div><div class="ttdeci">VirtualKey</div><div class="ttdoc">Represents each possible real or derived (SHIFT + real) key.</div><div class="ttdef"><b>Definition:</b> <a href="fabutils_8h_source.html#l01217">fabutils.h:1217</a></div></div>
<div class="ttc" id="akbdlayouts_8h_html"><div class="ttname"><a href="kbdlayouts_8h.html">kbdlayouts.h</a></div><div class="ttdoc">This file contains keyboard layouts.</div></div>
<div class="ttc" id="aps2device_8h_html"><div class="ttname"><a href="ps2device_8h.html">ps2device.h</a></div><div class="ttdoc">This file contains fabgl::PS2Device definition.</div></div>
<div class="ttc" id="astructfabgl_1_1_keyboard_layout_html"><div class="ttname"><a href="structfabgl_1_1_keyboard_layout.html">fabgl::KeyboardLayout</a></div><div class="ttdoc">All in one structure to fully represent a keyboard layout.</div><div class="ttdef"><b>Definition:</b> <a href="kbdlayouts_8h_source.html#l00082">kbdlayouts.h:82</a></div></div>
<div class="ttc" id="astructfabgl_1_1_virtual_key_item_html"><div class="ttname"><a href="structfabgl_1_1_virtual_key_item.html">fabgl::VirtualKeyItem</a></div><div class="ttdoc">A struct which contains a virtual key, key state and associated scan code.</div><div class="ttdef"><b>Definition:</b> <a href="fabutils_8h_source.html#l01501">fabutils.h:1501</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_82e8a5453e51b0b6168db3257bd0eaab.html">devdrivers</a></li><li class="navelem"><a class="el" href="keyboard_8h.html">keyboard.h</a></li>
    <li class="footer">Generated on Mon Aug 29 2022 13:52:04 for FabGL by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
  </ul>
</div>
</body>
</html>
